package com.zn.service;

import com.zn.entity.AppAgreement;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YinJiaWei
 * @version 2019/1/10 10:44
 */

public interface AppAgreementService {
    /**
     * 获取注册时的协议
     * @return
     */
    AppAgreement getAgreementByAgreementCode(String agreementCode) ;

    /**
     *查询风险提示协议
     */
    AppAgreement getRiskTipAgreement(String agreementCode,String customerId);

    /**
     * 客户已知晓协议
     * @param agreementId
     * @param customerId
     */
    boolean customerKnownAgreement(String agreementId,String customerId);

    /**
     * 获取协议列表
     * @param customerId
     * @return
     */
    List<AppAgreement> getAgreementList(String customerId);
}
